import props from '../../interface/props';

export default {
    state: {
        props: {},
        config: {},
        routeData: {},
        userInfo: {},

        userRegionCode: ""
    },
    mutations: {
        props(state: any, data: props) {
            state.props = data;
            state.config = data.config;
        },
        userInfo(state: any, data: Object) {
            state.userInfo = data;
        },

        routeData(state: any, data: Object) {
            state.routeData = data;
        },


    },
    getters: {
        props: (state: any) => state.props,
        config: (state: any) => state.config,
        userInfo: (state: any) => state.userInfo,
        routeData: (state: any) => state.routeData,
        addRoutes: (state: any) => state.addRoutes,
    },
    actions: {},
    modules: {}
};
